#include "mainwindow.h"
#include "mediator.h"
#include <QtGui>
#include <QtCore>

int main(int argc, char **argv)
{
	QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
	QTextCodec::setCodecForLocale(QTextCodec::codecForLocale());
	QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());

    QApplication app(argc, argv);
    Mediator proxy;
    MainWindow mainwindow(proxy);

    mainwindow.move((app.desktop()->width()-mainwindow.width())/2,
    		(app.desktop()->height()-mainwindow.height())/2);
    mainwindow.show();

    return app.exec();
}
